package edu.gduf.decortor;

/**
 * Created by Zhang DaoChuan on 2017/2/18.
 */
public class DecoyDuck extends Duck{

    public DecoyDuck(){
        super();
//        木头鸭不会叫
        quackBehavior = new MuteQuack();
//        木头鸭不会飞
        flyBehavior = new FlyNoWay();
    }

    @Override
    public void display() {
        System.out.println("I'am is a wood Duck!");
    }
}
